From da8ae236ae004585033050be64dd6d3dd6d73e5d Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Fri, 16 Feb 2007 07:21:03 +0000 Subject: [PATCH] Fix for ProtectionForm - make mwProtect-reason retain its value when errors are spat as errors are :-) --- includes/ProtectionForm.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index 4cd7dd44e6..0b96521628 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -273,7 +273,8 @@ class ProtectionForm { wfElement( 'input', array( 'size' => 60, 'name' => $id, - 'id' => $id ) ); + 'id' => $id, + 'value' => $this->mReason ) ); } function buildCascadeInput() { -- 2.20.1